Skip to content

Disable PostgreSQL top_query and query_sample by default#46844

Merged
andrzej-stencel merged 4 commits intoopen-telemetry:mainfrom
ebrdarSplunk:pg-disable-default
Mar 13, 2026
Merged

Disable PostgreSQL top_query and query_sample by default#46844
andrzej-stencel merged 4 commits intoopen-telemetry:mainfrom
ebrdarSplunk:pg-disable-default

Conversation

@ebrdarSplunk
Copy link
Contributor

Description

Looking at receiver/postgresqlreceiver/metadata.yaml file I noticed that db.server.query_sample and db.server.top_query are enabled by default. These flows should not be enabled by default and should be explicitly enabled by the customer

Link to tracking issue

Fixes #46843

Testing

Local testing setting up the receiver to velidate that data isnt emitted until we explicitly enable in the yaml config

Documentation

docs updated

@ebrdarSplunk ebrdarSplunk marked this pull request as ready for review March 12, 2026 16:09
@ebrdarSplunk ebrdarSplunk requested a review from a team as a code owner March 12, 2026 16:09
Copy link
Member

@ishleenk17 ishleenk17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@andrzej-stencel andrzej-stencel merged commit 401d677 into open-telemetry:main Mar 13, 2026
192 checks passed
@otelbot
Copy link
Contributor

otelbot bot commented Mar 13, 2026

Thank you for your contribution @ebrdarSplunk! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable PostgreSQL top_query and query_sample by default

5 participants